package com.erp.sell.domain;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.erp.common.annotation.Excel;
import com.erp.common.core.domain.BaseEntity;

/**
 * --- 不丢始终 ---
 *
 * @author lzx
 * @date 2025/9/6
 * @desc
 */
@Data
public class ErpSalOrderProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联ID，主键 */
    private Long id;

    /** 销售订单ID */
    @Excel(name = "销售订单ID")
    private Long orderId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long prodId;

    /** 对应的商品份数 */
    @Excel(name = "对应的商品份数")
    private Long count;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("prodId", getProdId())
                .append("count", getCount())
                .toString();
    }
}
